package com.mjk.common.web.getway.annotation;


import com.mjk.common.web.getway.conf.selector.BeeGetWaySelector;
import com.mjk.common.web.getway.transfer.GetwayTransferType;
import com.mjk.common.web.getway.utils.loadbalancer.LoadBalanceType;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 网关开启
 * @author mjk
 *
 */
@Target(value={ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(value= BeeGetWaySelector.class)
public @interface EnableGetWay {
	String[] basePackages() default {};
	
	Class<?>[] basePackageClasses() default {};

    boolean multiple() default false;
    
    String[] value() default {};
    /**
     * 转化的协议类型
     */
    GetwayTransferType transferType();

    /**
     * 负载均衡类型
     */
    LoadBalanceType balanceType() default LoadBalanceType.ROUND;
}
